BunnyHopSpeed.this

Base data for a bunny hop calculations

struct BunnyHopSpeed
this
(
ubyte friction
,
float airAccel
,,,,
float timeUnit = 1f
,
vec3 previousVelocity = vec3(0, 0, 0)
)
in { assert (friction >= 1 && friction <= 5); }

Parameters

friction
Type: ubyte

The friction of the world. Must be between 1 and 5. Where 5 would cause gliding.

timeUnit
Type: float

How long is a single time unit aka per frame? Default: 1

Meta